﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="Dashboard.aspx.cs" Inherits="Hestia_Cyberminer.Dashboard" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Styles/Master.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="OtherPages">
        <asp:Label ID="lblAdminName" runat="server" Text="Admin Name: "></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="txtBoxAdminName" runat="server" ValidationGroup="login"></asp:TextBox>
&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txtBoxAdminName" 
            ErrorMessage="Admin User Name is Required" ForeColor="Red" 
            ValidationGroup="login"></asp:RequiredFieldValidator>
&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        <asp:Label ID="lblAdminPass" runat="server" Text="Admin Password:"></asp:Label>
&nbsp; <asp:TextBox ID="txtBoxAdminPass" runat="server" TextMode="Password" 
            ValidationGroup="login"></asp:TextBox>
        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txtBoxAdminPass" 
            ErrorMessage="Admin Password is Required" ForeColor="Red" 
            ValidationGroup="login"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Button ID="btnLogin" runat="server" Text="Login" 
            onclick="btnLogin_Click" ValidationGroup="login" />

        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lblUserNotExistsError" 
            runat="server" ForeColor="Red" Text="User does not exist ! Please try again." 
            Visible="False"></asp:Label>
        <br />
        <br />
        <asp:RegularExpressionValidator ID="revAN" runat="server" 
            ControlToValidate="txtBoxAdminName" 
            ErrorMessage="Admin Name: Only Alphanumeric characters are allowed." 
            ForeColor="Red" ValidationExpression="[a-zA-Z0-9]*"></asp:RegularExpressionValidator>
        <br />
        <asp:RegularExpressionValidator ID="revAP" runat="server" 
            ControlToValidate="txtBoxAdminPass" 
            ErrorMessage="Admin Password: Only Alpha numeric character are allowed." 
            ForeColor="Red" ValidationExpression="[a-zA-Z0-9]*"></asp:RegularExpressionValidator>
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;
        <asp:Panel ID="DataEntryPanel" runat="server" Visible="False">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="lblkwIdentifier1" runat="server" Text="Identifier 1"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="lblkwIdentifier2" runat="server" Text="Identifier 2"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblkwIdentifier3" runat="server" Text="Identifier 3"></asp:Label>
        <br />
        <asp:Label ID="lblHTTP" runat="server" Style="text-align: center; font-weight: 700"
            Text="http://"></asp:Label>
        &nbsp;<asp:TextBox ID="txtBoxIdentifier1" runat="server" MaxLength="266" Width="118px"
            CausesValidation="True" ValidationGroup="addURL"></asp:TextBox>
        &nbsp;<asp:Label ID="lblDOT1" runat="server" Style="text-align: center; font-weight: 700"
            Text="."></asp:Label>
        &nbsp;<asp:TextBox ID="txtBoxIdentifier2" runat="server" MaxLength="266" 
                CausesValidation="True" ValidationGroup="addURL"></asp:TextBox>
        &nbsp;<asp:Label ID="lblDOT2" runat="server" Style="text-align: center; font-weight: 700"
            Text="."></asp:Label>
        &nbsp;<asp:TextBox ID="txtBoxIdentifier3" runat="server" MaxLength="266" 
                CausesValidation="True" ValidationGroup="addURL"></asp:TextBox>
            &nbsp;<strong>.
            <asp:DropDownList ID="DomainDropDownList" runat="server" 
                Style="text-align: center" ValidationGroup="addURL">
                <asp:ListItem>.com</asp:ListItem>
                <asp:ListItem>.org</asp:ListItem>
                <asp:ListItem>.net</asp:ListItem>
                <asp:ListItem>.edu</asp:ListItem>
            </asp:DropDownList>
            </strong>&nbsp;
        <asp:Label ID="lblSentence" runat="server"></asp:Label>
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
        <asp:Label ID="lblWarningMaxLen" runat="server" Text="Max Length(for each identifier): 266 Characters"></asp:Label>
        <br />
        &nbsp;<asp:Button ID="btnAddURL" runat="server" OnClick="onaddURLbtn_Click" Text="Add Url"
            ToolTip="Add Url to Database" ValidationGroup="addURL" />
        <br />
        <hr /><br />
        <asp:Label ID="Label1" runat="server" 
            Text="Any notification or errors will be mentioned below."></asp:Label>
            <hr />
        <asp:RequiredFieldValidator ID="rvfI1" runat="server" ControlToValidate="txtBoxIdentifier1"
            ErrorMessage="Required Field: Identifier 1" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        <asp:Label ID="lblDBTranscationStatus" runat="server" 
            Style="text-align: center" ForeColor="Red"></asp:Label>
        <br />
        <asp:Label ID="lblInsertExists" runat="server" ForeColor="Red"></asp:Label>
        <br />
        <asp:RegularExpressionValidator ID="revI1" runat="server" ControlToValidate="txtBoxIdentifier1"
            ErrorMessage="Only alphanumneric &amp; whitespace characters are allowed. "
            ValidationExpression="[a-zA-Z0-9]*" ForeColor="Red"></asp:RegularExpressionValidator>
        <br />
        <asp:RegularExpressionValidator ID="revI2" runat="server" ControlToValidate="txtBoxIdentifier2"
            ErrorMessage="Only alphanumneric &amp; whitespace characters are allowed. "
            ValidationExpression="[a-zA-Z0-9]*" ForeColor="Red"></asp:RegularExpressionValidator>
        <br />
        <asp:RegularExpressionValidator ID="revI3" runat="server" ControlToValidate="txtBoxIdentifier3"
            ErrorMessage="Only alphanumneric &amp; whitespace characters are allowed. "
            ValidationExpression="[a-zA-Z0-9]*" ForeColor="Red"></asp:RegularExpressionValidator>
        <br />
        <asp:Label ID="lblNoIdentifierError" runat="server" Text="Please Enter the Identifiers for the URL"
            Visible="False" ForeColor="Red"></asp:Label>
        <br />
        <asp:Label ID="lblBadUrlOrder" runat="server" Text="The Textboxes must be filled in order. Please Try Again."
            Visible="False" ForeColor="Red"></asp:Label>
        <br />
        <br />
        <br />
    </div>
    </div> </div>
    
    </asp:Panel>
</asp:Content>
